home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / BASIC / LIB / EVENTSHELL / DOCS / FontPick < prev    next >
Text File  |  1996-04-11  |  2KB  |  77 lines

  1. This extension library should be installed using the
  2. LIBRARY command and initialised with a call to
  3. FN_shell_FontPick_Init. This call must be made AFTER
  4. PROCshell_Init has been called.
  5.  
  6. Additionally the messages from the file 'Resources.UK.
  7. colourpick' should be added to the application's message
  8. file.
  9.  
  10. This library implements a font selector dialog box
  11. similar to the one specified in the Style Guide.
  12.  
  13. ------------------------------------------------------------------------------
  14.  
  15. FN_shell_FontPick_Init
  16. =>    None
  17.  
  18. <=    bool    TRUE if module initialised correctly
  19.          FALSE otherwise
  20.  
  21. Should be called before making calls to routines in
  22. this library.
  23.  
  24. ------------------------------------------------------------------------------
  25.  
  26. PROCshell_AttachPopupFontPicker()
  27. =>    int    window handle
  28.     int    menu icon handle
  29.     int    display icon handle (optional, may be -1)
  30.     str    selection function (optional, may be "")
  31.     str    preopen function (optional, may be "")
  32.  
  33. Provides for automatic updating of a display
  34. icon when a selection is made from the
  35. fontpicker dbox.
  36.  
  37. The button type of the menu icon is changed
  38. to 3 to ensure the menu opens when <SELECT>
  39. is used.
  40.  
  41. Selection FN (PROCshell_AttachPopupFontPicker)
  42. =>    str    selected font name
  43.     real    font width in pts
  44.     real    font height in pts
  45.  
  46. <=    int    no meaning
  47.  
  48. Called when a valid selection has been made from
  49. the fontpicker dbox.
  50.  
  51. Preopen FN (PROCshell_AttachPopupFontPicker)
  52. =>    int    window handle of fontpicker dbox
  53.  
  54. <=    int    no meaning
  55.  
  56. Called just before the fontpicker opens so that the
  57. appearance of the dbox can be adjusted. For example
  58. the title can be changed with PROCshell_FontPicker_SetTitle,
  59. and the current font can be set with a call to the
  60. routine PROCshell_FontPicker_SelectFont.
  61.  
  62. ------------------------------------------------------------------------------
  63.  
  64. PROCshell_FontPicker_SelectFont()
  65. =>    str    font name
  66.     int    width in pts
  67.     int    height in pts
  68.  
  69. This routine sets the state of the fontpicker
  70. dbox before it opens.
  71.  
  72. ------------------------------------------------------------------------------
  73.  
  74. PROCshell_FontPicker_SetTitle()
  75. =>    str    new title for dbox
  76.  
  77. ------------------------------------------------------------------------------